#include "chassis.h"
#include <iostream>

void Chassis::update(const std::string& message) {
    if (message == "前方") {
        std::cout << "后退..." << std::endl;
    } else if (message == "左前方") {
        std::cout << "右转..." << std::endl;
    } else if (message == "右前方") {
        std::cout << "左转..." << std::endl;
    }
}
